/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2021-12-06 17:18:37
 * @LastEditTime: 2021-12-06 17:36:29
 * @LastEditors: 赵大壮
 */
import DZServiceCompany from "@/views/公司管理/service/DZServiceCompany";
import DZServiceStaff from "@/views/员工管理/service/DZServiceStaff";
import DZServiceReport from "@/views/报告管理/service/DZServiceReport";
import { Component, Vue, Inject } from "vue-property-decorator";
import DZServiceInves from "../../service/DZServiceInves";

@Component({
    components: {}
})
export default class Index extends Vue {


    s_report = new DZServiceReport();

    s_inves = new DZServiceInves();

    created() { }

    mounted() {
        this.s_report.net_list_all_company();
        this.s_inves.net_list_inv_all();
        this.action_list_export();
    }

    beforeDestroy() {
    }

    action_select_change() {
        this.s_inves.m_page.page = 1;
        this.action_list_export();
    }

    action_list_export() {
        this.s_inves.net_list_export_inv();
    }


    action_page_change(cur_page) {
        this.s_inves.m_page.page = cur_page;
        this.action_list_export();
    }


    action_export_report() {
        this.s_inves.net_export_inves();
    }

    action_download_report(item) {
        this.s_inves.net_down_load(item.path)
    }

}